import numpy


class NumpyUtils:

    @classmethod
    def not_nan(cls, value):
        return not numpy.isnan(value)


    @classmethod
    def has_nan(cls, features):
        for f in features:
            if numpy.isnan(f):
                return True
        return False